.class Les/s9$a;
.super Ljava/lang/Object;
.source "DuVideoProcessor.java"

# interfaces
.implements Les/t9$a;


# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
    value = Les/s9;
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic a:Les/s9;


# direct methods
.method constructor <init>(Les/s9;)V
    .locals 0

    .line 1
    iput-object p1, p0, Les/s9$a;->a:Les/s9;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public a(Les/t9;Landroid/media/MediaFormat;Z)V
    .locals 2

    .line 1
    new-instance p1, Ljava/lang/StringBuilder;

    invoke-direct {p1}, Ljava/lang/StringBuilder;-><init>()V

    const-string v0, "onOutputFormatReceived "

    invoke-virtual {p1, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {p1, p2}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;

    const-string v0, " "

    invoke-virtual {p1, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {p1, p3}, Ljava/lang/StringBuilder;->append(Z)Ljava/lang/StringBuilder;

    const-string v0, " "

    invoke-virtual {p1, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    iget-object v0, p0, Les/s9$a;->a:Les/s9;

    invoke-static {v0}, Les/s9;->b(Les/s9;)Z

    move-result v0

    invoke-virtual {p1, v0}, Ljava/lang/StringBuilder;->append(Z)Ljava/lang/StringBuilder;

    const-string v0, " "

    invoke-virtual {p1, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    iget-object v0, p0, Les/s9$a;->a:Les/s9;

    invoke-static {v0}, Les/s9;->c(Les/s9;)Z

    move-result v0

    invoke-virtual {p1, v0}, Ljava/lang/StringBuilder;->append(Z)Ljava/lang/StringBuilder;

    invoke-virtual {p1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object p1

    const-string v0, "dpor"

    invoke-static {v0, p1}, Lcom/esfile/screen/recorder/media/util/k;->c(Ljava/lang/String;Ljava/lang/String;)V

    .line 2
    monitor-enter p0

    .line 3
    :goto_0
    :try_start_0
    iget-object p1, p0, Les/s9$a;->a:Les/s9;

    invoke-static {p1}, Les/s9;->d(Les/s9;)Z

    move-result p1

    if-eqz p1, :cond_0

    iget-object p1, p0, Les/s9$a;->a:Les/s9;

    invoke-static {p1}, Les/s9;->e(Les/s9;)Z

    move-result p1

    if-nez p1, :cond_0

    const-wide/16 v0, 0xa

    .line 4
    invoke-virtual {p0, v0, v1}, Ljava/lang/Object;->wait(J)V
    :try_end_0
    .catch Ljava/lang/InterruptedException; {:try_start_0 .. :try_end_0} :catch_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    goto :goto_0

    :catchall_0
    move-exception p1

    goto/16 :goto_3

    .line 5
    :catch_0
    :cond_0
    :try_start_1
    iget-object p1, p0, Les/s9$a;->a:Les/s9;

    invoke-static {p1}, Les/s9;->d(Les/s9;)Z

    move-result p1

    if-eqz p1, :cond_7

    iget-object p1, p0, Les/s9$a;->a:Les/s9;

    invoke-static {p1}, Les/s9;->e(Les/s9;)Z

    move-result p1

    if-nez p1, :cond_1

    goto :goto_2

    :cond_1
    if-eqz p3, :cond_2

    .line 6
    iget-object p1, p0, Les/s9$a;->a:Les/s9;

    invoke-static {p1, p2}, Les/s9;->a(Les/s9;Landroid/media/MediaFormat;)Landroid/media/MediaFormat;

    goto :goto_1

    .line 7
    :cond_2
    iget-object p1, p0, Les/s9$a;->a:Les/s9;

    invoke-static {p1, p2}, Les/s9;->b(Les/s9;Landroid/media/MediaFormat;)Landroid/media/MediaFormat;

    .line 8
    :goto_1
    iget-object p1, p0, Les/s9$a;->a:Les/s9;

    invoke-static {p1}, Les/s9;->b(Les/s9;)Z

    move-result p1

    if-eqz p1, :cond_3

    iget-object p1, p0, Les/s9$a;->a:Les/s9;

    invoke-static {p1}, Les/s9;->f(Les/s9;)Landroid/media/MediaFormat;

    move-result-object p1

    if-eqz p1, :cond_6

    :cond_3
    iget-object p1, p0, Les/s9$a;->a:Les/s9;

    invoke-static {p1}, Les/s9;->c(Les/s9;)Z

    move-result p1

    if-eqz p1, :cond_4

    iget-object p1, p0, Les/s9$a;->a:Les/s9;

    invoke-static {p1}, Les/s9;->g(Les/s9;)Landroid/media/MediaFormat;

    move-result-object p1

    if-eqz p1, :cond_6

    :cond_4
    const-string p1, "dpor"

    .line 9
    new-instance v0, Ljava/lang/StringBuilder;

    invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V

    const-string v1, "all onOutputFormatReceived "

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v0, p2}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;

    const-string p2, " "

    invoke-virtual {v0, p2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v0, p3}, Ljava/lang/StringBuilder;->append(Z)Ljava/lang/StringBuilder;

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object p2

    invoke-static {p1, p2}, Lcom/esfile/screen/recorder/media/util/k;->c(Ljava/lang/String;Ljava/lang/String;)V

    .line 10
    iget-object p1, p0, Les/s9$a;->a:Les/s9;

    invoke-static {p1}, Les/s9;->a(Les/s9;)Les/s9$b;

    move-result-object p1

    if-eqz p1, :cond_5

    .line 11
    iget-object p1, p0, Les/s9$a;->a:Les/s9;

    invoke-static {p1}, Les/s9;->a(Les/s9;)Les/s9$b;

    move-result-object p1

    iget-object p2, p0, Les/s9$a;->a:Les/s9;

    iget-object p3, p0, Les/s9$a;->a:Les/s9;

    invoke-static {p3}, Les/s9;->f(Les/s9;)Landroid/media/MediaFormat;

    move-result-object p3

    iget-object v0, p0, Les/s9$a;->a:Les/s9;

    invoke-static {v0}, Les/s9;->g(Les/s9;)Landroid/media/MediaFormat;

    move-result-object v0

    invoke-interface {p1, p2, p3, v0}, Les/s9$b;->a(Les/s9;Landroid/media/MediaFormat;Landroid/media/MediaFormat;)V

    .line 12
    :cond_5
    iget-object p1, p0, Les/s9$a;->a:Les/s9;

    const/4 p2, 0x1

    invoke-static {p1, p2}, Les/s9;->b(Les/s9;Z)Z

    .line 13
    :cond_6
    monitor-exit p0

    return-void

    .line 14
    :cond_7
    :goto_2
    monitor-exit p0

    return-void

    .line 15
    :goto_3
    monitor-exit p0
    :try_end_1
    .catchall {:try_start_1 .. :try_end_1} :catchall_0

    goto :goto_5

    :goto_4
    throw p1

    :goto_5
    goto :goto_4
.end method

.method public a(Les/t9;Lcom/esfile/screen/recorder/media/util/l;Z)V
    .locals 2

    .line 16
    monitor-enter p0

    .line 17
    :goto_0
    :try_start_0
    iget-object p1, p0, Les/s9$a;->a:Les/s9;

    invoke-static {p1}, Les/s9;->d(Les/s9;)Z

    move-result p1

    if-eqz p1, :cond_0

    iget-object p1, p0, Les/s9$a;->a:Les/s9;

    invoke-static {p1}, Les/s9;->h(Les/s9;)Z

    move-result p1

    if-nez p1, :cond_0

    const-wide/16 v0, 0xa

    .line 18
    invoke-virtual {p0, v0, v1}, Ljava/lang/Object;->wait(J)V
    :try_end_0
    .catch Ljava/lang/InterruptedException; {:try_start_0 .. :try_end_0} :catch_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    goto :goto_0

    :catchall_0
    move-exception p1

    goto :goto_3

    .line 19
    :catch_0
    :cond_0
    :try_start_1
    iget-object p1, p0, Les/s9$a;->a:Les/s9;

    invoke-static {p1}, Les/s9;->d(Les/s9;)Z

    move-result p1

    if-eqz p1, :cond_3

    iget-object p1, p0, Les/s9$a;->a:Les/s9;

    invoke-static {p1}, Les/s9;->h(Les/s9;)Z

    move-result p1

    if-nez p1, :cond_1

    goto :goto_2

    .line 20
    :cond_1
    monitor-exit p0
    :try_end_1
    .catchall {:try_start_1 .. :try_end_1} :catchall_0

    .line 21
    iget-object p1, p0, Les/s9$a;->a:Les/s9;

    invoke-static {p1}, Les/s9;->a(Les/s9;)Les/s9$b;

    move-result-object p1

    if-eqz p1, :cond_2

    .line 22
    iget-object v0, p0, Les/s9$a;->a:Les/s9;

    invoke-interface {p1, v0, p2, p3}, Les/s9$b;->a(Les/s9;Lcom/esfile/screen/recorder/media/util/l;Z)V

    goto :goto_1

    .line 23
    :cond_2
    invoke-virtual {p2}, Lcom/esfile/screen/recorder/media/util/l;->a()V

    :goto_1
    return-void

    .line 24
    :cond_3
    :goto_2
    :try_start_2
    invoke-virtual {p2}, Lcom/esfile/screen/recorder/media/util/l;->a()V

    .line 25
    monitor-exit p0

    return-void

    .line 26
    :goto_3
    monitor-exit p0
    :try_end_2
    .catchall {:try_start_2 .. :try_end_2} :catchall_0

    goto :goto_5

    :goto_4
    throw p1

    :goto_5
    goto :goto_4
.end method

.method public a(Les/t9;Ljava/lang/Exception;Z)V
    .locals 1

    .line 37
    iget-object p1, p0, Les/s9$a;->a:Les/s9;

    invoke-static {p1}, Les/s9;->a(Les/s9;)Les/s9$b;

    move-result-object p1

    if-eqz p1, :cond_0

    .line 38
    iget-object p1, p0, Les/s9$a;->a:Les/s9;

    invoke-static {p1}, Les/s9;->a(Les/s9;)Les/s9$b;

    move-result-object p1

    iget-object v0, p0, Les/s9$a;->a:Les/s9;

    invoke-interface {p1, v0, p2, p3}, Les/s9$b;->a(Les/s9;Ljava/lang/Exception;Z)V

    :cond_0
    return-void
.end method

.method public a(Les/t9;Z)V
    .locals 1

    .line 27
    monitor-enter p0

    .line 28
    :try_start_0
    iget-object p1, p0, Les/s9$a;->a:Les/s9;

    invoke-static {p1}, Les/s9;->h(Les/s9;)Z

    move-result p1

    if-nez p1, :cond_1

    if-nez p2, :cond_1

    .line 29
    iget-object p1, p0, Les/s9$a;->a:Les/s9;

    invoke-static {p1}, Les/s9;->g(Les/s9;)Landroid/media/MediaFormat;

    move-result-object p1

    if-nez p1, :cond_1

    .line 30
    iget-object p1, p0, Les/s9$a;->a:Les/s9;

    const/4 v0, 0x0

    invoke-static {p1, v0}, Les/s9;->a(Les/s9;Z)Z

    .line 31
    iget-object p1, p0, Les/s9$a;->a:Les/s9;

    invoke-static {p1}, Les/s9;->b(Les/s9;)Z

    move-result p1

    if-eqz p1, :cond_0

    iget-object p1, p0, Les/s9$a;->a:Les/s9;

    invoke-static {p1}, Les/s9;->f(Les/s9;)Landroid/media/MediaFormat;

    move-result-object p1

    if-eqz p1, :cond_1

    .line 32
    :cond_0
    iget-object p1, p0, Les/s9$a;->a:Les/s9;

    const/4 v0, 0x1

    invoke-static {p1, v0}, Les/s9;->b(Les/s9;Z)Z

    .line 33
    :cond_1
    monitor-exit p0
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    .line 34
    iget-object p1, p0, Les/s9$a;->a:Les/s9;

    invoke-static {p1}, Les/s9;->a(Les/s9;)Les/s9$b;

    move-result-object p1

    if-eqz p1, :cond_2

    .line 35
    iget-object p1, p0, Les/s9$a;->a:Les/s9;

    invoke-static {p1}, Les/s9;->a(Les/s9;)Les/s9$b;

    move-result-object p1

    iget-object v0, p0, Les/s9$a;->a:Les/s9;

    invoke-interface {p1, v0, p2}, Les/s9$b;->b(Les/s9;Z)V

    :cond_2
    return-void

    :catchall_0
    move-exception p1

    .line 36
    :try_start_1
    monitor-exit p0
    :try_end_1
    .catchall {:try_start_1 .. :try_end_1} :catchall_0

    throw p1
.end method

.method public b(Les/t9;Z)V
    .locals 1

    .line 1
    iget-object p1, p0, Les/s9$a;->a:Les/s9;

    invoke-static {p1}, Les/s9;->a(Les/s9;)Les/s9$b;

    move-result-object p1

    if-eqz p1, :cond_0

    .line 2
    iget-object v0, p0, Les/s9$a;->a:Les/s9;

    invoke-interface {p1, v0, p2}, Les/s9$b;->a(Les/s9;Z)V

    :cond_0
    return-void
.end method
